﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SkyFab.Master" AutoEventWireup="True" CodeBehind="CustomerInvoiceDetail.aspx.cs" Inherits="Web.CustomerInvoiceDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="SubMenuPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Label ID="FlashMessageLabel" runat="server"></asp:Label>
<h1>Customer Invoice Detail</h1>

    <div class="span-9">
    <fieldset>
    <legend>Customer Information</legend>

    <p>
    <label>Customer:</label>
    <asp:Label ID="CustomerLabel" runat="server"></asp:Label>
    </p>

    <p>
    <label>Ship-To:(Customer Address)</label>
    <asp:Label ID="AddressLabel" runat="server"></asp:Label>
    </p>

    <p>
    <label>Zip Code</label>
    <asp:Label ID="ZipCodeLabel" runat="server"></asp:Label>
    </p>
    </fieldset>
    </div>

    <div class="span-9">
    <fieldset>
    <legend>Invoice Information</legend>

    <p>
    <label>Invoice No.:</label>
    <asp:Label ID="InvoiceNoLable" runat="server"></asp:Label>
    </p>

    <p>
    <label>Date:</label>
    <asp:Label ID="DateLabel" runat="server"></asp:Label>
    </p>

    <p>
    <label>Is Paid:</label>
    <asp:Label ID="PaidLabel" runat="server"></asp:Label>
    </p>
    </fieldset>
    </div>

    <div class="span-18">
    <fieldset>
    <legend>Invoice Items</legend>
    <p>
    <asp:GridView ID="CustomerInvoiceItemsGridView" runat="server" 
        AutoGenerateColumns="False" CssClass="gridview">
        <Columns>
            <asp:TemplateField HeaderText="Product No">
                <ItemTemplate>
                    <asp:HyperLink ID="ProductNo" runat="server" NavigateUrl='<%# "ProductDetail.aspx?id="+Eval("ProductId") %>'><%# Eval("ProductNo") %></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="ProductName" HeaderText="Product Name" />
            <asp:BoundField DataField="BatchNo" HeaderText="Batch No" />
            <asp:BoundField DataField="Quantity" HeaderText="Qty" />
            <asp:TemplateField HeaderText="PO No">
                <ItemTemplate>
                    <asp:HyperLink ID="PONoHyperLink" runat="server" NavigateUrl='<%# "CustomerPODetail.aspx?custPOid="+Eval("PoId") %>'><%# Eval("PoNo")%></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>

        
                    <AlternatingRowStyle BackColor="White" />
                    <EditRowStyle BackColor="#2461BF" />
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle HorizontalAlign="Center" CssClass="pagerTable" />
                    <RowStyle BackColor="#EFF3FB" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
    </p>
    </fieldset>
    </div>

    <div class="span-18">
    <asp:Button ID="EditButton" Text="Edit" runat="server" 
                    onclick="EditButton_Click" CssClass="submitButton"/>
    <asp:Button ID="DeleteButton" Text="Delete" runat="server" 
                    onclick="DeleteButton_Click" CssClass="submitButton"/>
    <%--<asp:Button ID="InvoicePDFButton" runat="server" onclick="PDFButton_Click" 
                    Text="Customer Invoice PDF" CssClass="submitButton" 
            Visible="False"/>--%>
    <asp:Button ID="PackagePDFButton" runat="server" onclick="PackagePDFButton_Click" 
                    Text="Package PDF" CssClass="submitButton"/>
    <asp:Button ID="ItemPDFButton" runat="server" onclick="ItemPDFButton_Click" 
                    Text="Item List PDF" CssClass="submitButton" />
    </div>
    
</asp:Content>
